#include <board.h>
#include <rtthread.h>
#include <drivers/pin.h>

void rt_key_thread_entry(void *parameter)
{
    while (1)
    {

        rt_thread_delay(50 / RT_SLEEP_RATIO);
    }
}

int rt_key_thread_init(voi)
{
    rt_thread_t tid;

    tid = rt_thread_create("key",
                           rt_key_thread_entry, RT_NULL,
                           2048, RT_THREAD_PRIORITY_MAX / 3, 20);
    if (tid != RT_NULL) rt_thread_startup(tid);
}

INIT_APP_EXPORT(rt_key_thread_init);
